package cn.bdqn.auth_provider;

import cn.bdqn.common.Constants;
import cn.bdqn.common.DateUtils;

import java.util.Date;

/**
 * 2018/9/21
 */
public class test111 {
    public static void main(String[] args) {
        String a = "20081121112203";
        Date createDate = DateUtils.stringToDate(Constants.TOKEN_DATE_FORMAT,a);
        long passed1 = System.currentTimeMillis() - createDate.getTime();
        long passed = new Date().getTime() - createDate.getTime();
        System.out.println(passed);
    }
}
